package jicheng1;

public class Plane {

private String type;
    private int weight;
    private int height;

    public Plane(int weight, int height,String type) {
        this.weight = weight;
        this.height = height;
        this.type=type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    public void fly(){
        System.out.println(type+"起飞");
    }
    public void speed(){
        System.out.println(type+"加速了");
    }
    public void landing(){
        System.out.println(type+"到达目的地，开始降落了");
    }
}
